package com.bob.clan.wxconnector.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bob.clan.wxconnector.entity.Fans;
import com.bob.clan.wxconnector.mapper.FansMapper;
import com.bob.clan.wxconnector.service.IFansService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class FansServiceImpl extends ServiceImpl<FansMapper, Fans> implements IFansService {
    @Autowired
    private FansMapper fansMapper;
    @Override
    public Fans getFans(String openid) {
        QueryWrapper<Fans> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("openid",openid);
        return super.getOne(queryWrapper);
    }
}
